package com.ricchieri.service;

import java.io.Serializable;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.ricchieri.dao.interf.ITripStopDao;
import com.ricchieri.filter.BasicFilter;
import com.ricchieri.model.TripStop;
import com.ricchieri.service.interf.ITripStopService;

@Transactional(readOnly = true)
public class TripStopService implements ITripStopService, Serializable {
	private static final long serialVersionUID = 612639434618099420L;
	ITripStopDao tripStopDao;
	
	@Override
	@Transactional(readOnly = true)
	public List<TripStop> getAllTripStop() {
		BasicFilter filter = new BasicFilter();
		return tripStopDao.getAllTripStop(filter);
	}

	public ITripStopDao getTripStopDao() {
		return tripStopDao;
	}

	public void setTripStopDao(ITripStopDao tripStopDao) {
		this.tripStopDao = tripStopDao;
	}
}
